package com.hl.hospital.controller;

import com.hl.hospital.config.Constants;
import com.hl.hospital.dao.*;
import com.hl.hospital.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hl
 * @Date: 2021/06/23/11:01
 */
@Controller
public class VIZYController {
    @Autowired
    private ViZyByjMapper viZyByjMapper;
    @Autowired
    private ViZyByjbqxxMapper viZyByjbqxxMapper;
    @Autowired
    private ViZyByjypxxMapper viZyByjypxxMapper;
    @Autowired
    private ViZyEmrvsybMapper viZyEmrvsybMapper;
    @Autowired
    private ViZyFeeSpeciMapper viZyFeeSpeciMapper;
    @Autowired
    private ViZyOrderexecMapper viZyOrderexecMapper;
    @Autowired
    private ViZyOrderrecordMapper viZyOrderrecordMapper;
    @Autowired
    private ViZySysdummy1Mapper viZySysdummy1Mapper;
    @Autowired
    private ViZyVdepttypeMapper viZyVdepttypeMapper;
    @Autowired
    private ViZyVdoctorMapper viZyVdoctorMapper;
    @Autowired
    private ViZyVinpatientAllMapper viZyVinpatientAllMapper;
    @Autowired
    private ViZyVinpatientAllNewMapper viZyVinpatientAllNewMapper;
    @Autowired
    private ViZyVinpatientAllZtjsMapper viZyVinpatientAllZtjsMapper;
    @Autowired
    private ViZyVinpatientBedMapper viZyVinpatientBedMapper;
    @Autowired
    private ViZyVinpatientInfoMapper viZyVinpatientInfoMapper;
    @Autowired
    private ViZyVinpatientMapper viZyVinpatientMapper;
    @Autowired
    private ViZyVinpatientSimpleMapper viZyVinpatientSimpleMapper;
    @RequestMapping("vizybyj")
    public String vizybyj(Model model)
    {
        List<ViZyByj> viZyByjs = viZyByjMapper.selectAll();
        model.addAttribute(Constants.VIZYBYJ,viZyByjs);
        return "vizybyj";
    }

    @RequestMapping("vizybyjbqxx")
    public String vizybyjbqxx(Model model)
    {
        List<ViZyByjbqxx> viZyByjbqxxes = viZyByjbqxxMapper.selectAll();
        model.addAttribute(Constants.VIZYBYJBQXX,viZyByjbqxxes);
        return "vizybyjbqxx";
    }

    @RequestMapping("vizybyjypxx")
    public String vizybyjypxx(Model model)
    {
        List<ViZyByjypxx> viZyByjypxxes = viZyByjypxxMapper.selectAll();
        model.addAttribute(Constants.VIZYBYJYPXX,viZyByjypxxes);
        return "vizybyjypxx";
    }

    @RequestMapping("vizyemrvsyb")
    public String vizyemrvsyb(Model model)
    {
        List<ViZyEmrvsyb> viZyEmrvsybs = viZyEmrvsybMapper.selectAll();
        model.addAttribute(Constants.VIZYEMRVSYB,viZyEmrvsybs);
        return "vizyemrvsyb";
    }

    @RequestMapping("vizyfeespeci")
    public String vizyfeespeci(Model model)
    {
        List<ViZyFeeSpeci> viZyFeeSpecis = viZyFeeSpeciMapper.selectAll();
        model.addAttribute(Constants.VIZYFEESPECI,viZyFeeSpecis);
        return "vizyfeespeci";
    }

    @RequestMapping("vizyorderexec")
    public String vizyorderexec(Model model)
    {
        List<ViZyOrderexec> viZyOrderexecs = viZyOrderexecMapper.selectAll();
        model.addAttribute(Constants.VIZYORDEREXEC,viZyOrderexecs);
        return "vizyorderexec";
    }

    @RequestMapping("vizyorderrecord")
    public String vizyorderrecord(Model model)
    {
        List<ViZyOrderrecord> viZyOrderrecords = viZyOrderrecordMapper.selectAll();
        model.addAttribute(Constants.VIZIORDERRECORD,viZyOrderrecords);
        return "vizyorderrecord";
    }

    @RequestMapping("vizysysdummy1")
    public String vizysysdummy1(Model model)
    {
        List<ViZySysdummy1> viZySysdummy1s = viZySysdummy1Mapper.selectAll();
        model.addAttribute(Constants.VIZYSYSDUMMY1,viZySysdummy1s);
        return "index";
    }

    @RequestMapping("vizyvdepttype")
    public String vizyvdepttype(Model model)
    {
        List<ViZyVdepttype> viZyVdepttypes = viZyVdepttypeMapper.selectAll();
        model.addAttribute(Constants.VIZYVDEPTTYPE,viZyVdepttypes);
        return "index";
    }
    @RequestMapping("vizyvdoctor")
    public String vizyvdoctor(Model model)
    {
        List<ViZyVdoctor> viZyVdoctors = viZyVdoctorMapper.selectAll();
        model.addAttribute(Constants.VIZYVDOCTOR,viZyVdoctors);
        return "vizyvdoctor";
    }

    @RequestMapping("vizyinpatientall")
    public String vizyinpatientall(Model model)
    {
        List<ViZyVinpatientAll> viZyVinpatientAlls = viZyVinpatientAllMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTALL,viZyVinpatientAlls);
        return "vizyinpatientall";
    }

    @RequestMapping("vizyinpatient")
    public String vizyinpatient(Model model)
    {
        List<ViZyVinpatient> viZyVinpatients = viZyVinpatientMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENT,viZyVinpatients);
        return "vizyinpatient";
    }

    @RequestMapping("vizyinpatientallnew")
    public String vizyinpatientallnew(Model model)
    {
        List<ViZyVinpatientAllNew> viZyVinpatientAllNews = viZyVinpatientAllNewMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTALLNEW,viZyVinpatientAllNews);
        return "vizyinpatientallnew";
    }

    @RequestMapping("vizyinpatientallztjs")
    public String vizyinpatientallztjs(Model model)
    {
        List<ViZyVinpatientAllZtjs> viZyVinpatientAllZtjs = viZyVinpatientAllZtjsMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTALLZTJS,viZyVinpatientAllZtjs);
        return "vizyinpatientallztjs";
    }

    @RequestMapping("vizyinpatientbed")
    public String vizyinpatientbed(Model model)
    {
        List<ViZyVinpatientBed> viZyVinpatientBeds = viZyVinpatientBedMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTBED,viZyVinpatientBeds);
        return "vizyinpatientbed";
    }

    @RequestMapping("vizyinpatientinfo")
    public String vizyinpatientinfo(Model model)
    {
        List<ViZyVinpatientInfo> viZyVinpatientInfos = viZyVinpatientInfoMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTINFO,viZyVinpatientInfos);
        return "vizyinpatientinfo";
    }

    @RequestMapping("vizyinpatientsimple")
    public String vizyinpatientsimple(Model model)
    {
        List<ViZyVinpatientSimple> viZyVinpatientSimples = viZyVinpatientSimpleMapper.selectAll();
        model.addAttribute(Constants.VIZYINPATIENTSIMPLE,viZyVinpatientSimples);
        return "vizyinpatientsimple";
    }

}
